package com.xuchaotong.service.intercepter;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.springframework.stereotype.Component;

@Aspect
@Component
public class LogIntercepter {

    @Before("execution(public * com.xuchaotong.service..*.addUser(..))")
    public void beforeMethod(){
        System.out.println("before method...");
    }
}
